/**
@author		Jong Min, Lee
@date		  01/21/2014
@brief		viewer global instance set

copyright(c) Tae Young Soft. All right reserved. 2014
*/
#include "stdafx.h"
#include "Taurus_Viewer/VGlobalInstanceSet.h"

#include "Taurus_ToolData/ToolDataAdmin.h"

#include "Taurus_Viewer/ViewerProperty.h"

CVGlobalInstanceSet* CVGlobalInstanceSet::m_pInstance = NULL;

CVGlobalInstanceSet::CVGlobalInstanceSet()
{
  m_pAppGInstanceSet = NULL;
}

CVGlobalInstanceSet::~CVGlobalInstanceSet()
{}

CVGlobalInstanceSet* CVGlobalInstanceSet::getInstance()
{
  if(m_pInstance == NULL)
    _TRY_ALLOC(m_pInstance, CVGlobalInstanceSet);

  return m_pInstance;
}

IViewerProperty* CVGlobalInstanceSet::getViewerProperty()
{
  return CViewerProperty::getInstance();
}

CToolDataAdmin* CVGlobalInstanceSet::getToolDataAdmin()
{
  return CToolDataAdmin::getInstance();
}

IAppGlobalInstanceSet* CVGlobalInstanceSet::getAppGlobalInstanceSet()
{
  return m_pAppGInstanceSet;
}

void CVGlobalInstanceSet::setAppGlobalInstanceSet(IAppGlobalInstanceSet* pAppGSet)
{
  m_pAppGInstanceSet = pAppGSet;
}